﻿using Loyalty.Application;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Loyalty.Infrastructure.EntityFramework.Poco
{
    public enum RequestStates { None = 0, Fail = 1, Successfull = 2, SuccessfullWithMessage = 3 }

    public class ErrorExeptionsResult<T>
    {
        public ErrorExeptionsResult()
        {
            ErrorMessage = "";
            RequestState = RequestStates.Successfull;
        }

        public T SelectedItem { get; set; }
        public IList<T> CurrentItems { get; set; }
        public string ErrorMessage { get; set; }
        public RequestStates RequestState { get; set; }
        public HttpStatusCode HttpStatusCode { get; set; }
        public long RecordCount { get; set; }

    }


    public class ErrorExeptionsResult
    {
        public ErrorExeptionsResult()
        {
            ErrorMessage = "";
            RequestState = RequestStates.Successfull;
        }

        public string ErrorMessage { get; set; }
        public RequestStates RequestState { get; set; }

    }
}
